package components.alert
{
	import capricornus.components.window.FrameWindow;
	
	import flash.display.DisplayObjectContainer;
	import flash.display.InteractiveObject;
	import flash.text.TextField;
	
	internal class AlertView extends FrameWindow
	{
		public var txtContent:TextField;
		
		public var btnOK:InteractiveObject;
		public var btnCancel:InteractiveObject;
		
		public function AlertView(owner:DisplayObjectContainer)
		{
			super(owner);
			init();
		}
		
		private function init():void
		{
			panel = new AlertPanel();
			
			txtContent = panel.getChildByName("txtcontent") as TextField;
			
			btnOK = panel.getChildByName("btnok") as InteractiveObject;
			btnCancel = panel.getChildByName("btncancel") as InteractiveObject;
		}
		
		override public function close():void
		{
			super.close();
		}
	}
}